package com.cn.singleton;

public class SingletonTest {
	
	private static SingletonTest instance=null;
	
	private SingletonTest(){
	}
	
	private static synchronized void initInstance(){
		if(instance==null){
			instance=new SingletonTest();
		}
	}
	
	public static SingletonTest getInstance(){
		if(instance==null){
			initInstance();
		}
		return instance;
	}

}
